package com.microservice.api.wechat;

import com.microservice.api.common.Result;
import com.microservice.api.wechat.dto.ArticleDTO;
import com.microservice.api.wechat.dto.DraftAddResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 微信草稿箱服务API接口
 * 定义wechat-service的草稿箱管理相关接口
 * 
 * @author common-api
 */
@FeignClient(name = "wechat-service", contextId = "wechatDraftServiceApi", path = "/wechat/draft")
public interface WechatDraftServiceClient {
    
    /**
     * 新建草稿
     * 
     * @param article 文章信息
     * @return 草稿响应结果（包含media_id等）
     */
    @PostMapping("/add")
    Result<DraftAddResponse> addDraft(@RequestBody ArticleDTO article);
}
